package com.easytake.emotioncat.util;

import java.util.Objects;
import java.util.function.Consumer;

public class EntityUtil {
    public static<T> void changeProperty(T value, Consumer<T> function) {
        if (Objects.isNull(value)) {
            return;
        }
        function.accept(value);
    }
}
